import request from '@/utils/axios';
import appName from '@/api/appName';

// 查询父表分页
export function queryListForFather(params) {
  return request({
    url: appName.NB + '/maintain/printing/queryListForFather',
    method: 'post',
    data: params
  });
}

// 查询子表分页
export function queryListForSon(params) {
  return request({
    url: appName.NB + '/maintain/printing/queryListForSon',
    method: 'post',
    data: params
  });
}

// 编辑父表数据
export function editDataForFather(params) {
  return request({
    url: appName.NB + '/maintain/printing/editDataForFather',
    method: 'post',
    data: params
  });
}

// 新增父表数据
export function addDataForFather(params) {
  return request({
    url: appName.NB + '/maintain/printing/addDataForFather',
    method: 'post',
    data: params
  });
}

// 编辑子表数据
export function editDataForSon(params) {
  return request({
    url: appName.NB + '/maintain/printing/editDataForSon',
    method: 'post',
    data: params
  });
}

// 新增子表数据
export function addDataForSon(params) {
  return request({
    url: appName.NB + '/maintain/printing/addDataForSon',
    method: 'post',
    data: params
  });
}

// 删除父表数据
export function deleteDataForFather(params) {
  return request({
    url: appName.NB + '/maintain/printing/deleteDataForFather',
    method: 'post',
    data: params
  });
}

// 删除子表数据
export function deleteDataForSon(params) {
  return request({
    url: appName.NB + '/maintain/printing/deleteDataForSon',
    method: 'post',
    data: params
  });
}